---
db:
  image: {{ registry_dns }}:5000/ppc64le/postgres:{{ image_version }}
  environment:
      POSTGRES_DB: cds
      POSTGRES_USER: cdsadmin
      POSTGRES_PASSWORD: pgpassw0rd
  volumes:
      - /data/pgdata:/var/lib/postgresql/data
  ports:
      - "5432:5432"
  # tty is needed to run sudo as postgres user
  # those options could be specfied like the way for docker run command
  # more information: https://docs.docker.com/compose/compose-file
  tty: true
  restart: always

redis:
  image: {{ registry_dns }}:5000/ppc64le/redis:{{ image_version }}
  restart: always
  ports:
      - "6379:6379"
